package com.xydtech.busiflw.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 业务流转步骤对象 busifl_inststep
 *
 * @author JHON
 * @date 2021-06-11
 */
public class BusiflInstStep extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 业务步骤编号 */
    private Long tracestepId;

    /**任务批次号*/
    private String taskBatchId;
    /** 实例号 */
    @Excel(name = "实例号")
    private String instanceId;

    /** 流程步骤 */
    @Excel(name = "流程步骤")
    private Long stepId;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createUser;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date stopTime;

    /** 处理人 */
    @Excel(name = "处理人")
    private Long stopUser;

    /** 处理意见 */
    @Excel(name = "处理意见")
    private String approveType;

    /** 意见说明 */
    @Excel(name = "意见说明")
    private String approveMemo;

    /** 状态            0-待处理 1-已处理 */
    @Excel(name = "状态            0-待处理 1-已处理")
    private String sts;
    /** 审批步骤 */
    private String stepName;
    /** 审批人 */
    private String userName;
    /** 处理意见 */
    private String approvDesc;

    public void setTracestepId(Long tracestepId) {
        this.tracestepId = tracestepId;
    }

    public Long getTracestepId() {
        return tracestepId;
    }

    public void setInstanceId(String instanceId) {
        this.instanceId = instanceId;
    }

    public String getInstanceId() {
        return instanceId;
    }

    public void setStepId(Long stepId) {
        this.stepId = stepId;
    }

    public Long getStepId() {
        return stepId;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }

    public Date getStopTime() {
        return stopTime;
    }

    public void setStopUser(Long stopUser) {
        this.stopUser = stopUser;
    }

    public Long getStopUser() {
        return stopUser;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public String getSts() {
        return sts;
    }

    public String getApproveType() {
        return approveType;
    }

    public void setApproveType(String approveType) {
        this.approveType = approveType;
    }

    public String getApproveMemo() {
        return approveMemo;
    }

    public void setApproveMemo(String approveMemo) {
        this.approveMemo = approveMemo;
    }

    public String getTaskBatchId() {
        return taskBatchId;
    }

    public void setTaskBatchId(String taskBatchId) {
        this.taskBatchId = taskBatchId;
    }

    public String getStepName() {
        return stepName;
    }

    public void setStepName(String stepName) {
        this.stepName = stepName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getApprovDesc() {
        return approvDesc;
    }

    public void setApprovDesc(String approvDesc) {
        this.approvDesc = approvDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("tracestepId", getTracestepId())
                .append("instanceId", getInstanceId())
                .append("stepId", getStepId())
                .append("createUser", getCreateUser())
                .append("createTime", getCreateTime())
                .append("stopTime", getStopTime())
                .append("stopUser", getStopUser())
                .append("approveType", getApproveType())
                .append("approveMemo", getApproveMemo())
                .append("sts", getSts())
                .toString();
    }
}
